package com.lframework.xingyun.promo.service.member;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.xingyun.promo.entity.MarketingMember;
import com.lframework.xingyun.promo.vo.member.CreateMarketingMemberVo;
import com.lframework.xingyun.promo.vo.member.QueryMarketingMemberVo;
import com.lframework.xingyun.promo.vo.member.UpdateMarketingMemberVo;

import java.util.List;

/**
 * 会员营销活动表 Service
 */
public interface MarketingMemberService extends BaseMpService<MarketingMember> {

    /**
     * 查询列表
     * @return
     */
    PageResult<MarketingMember> queryPage(Integer pageIndex, Integer pageSize, QueryMarketingMemberVo vo);

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<MarketingMember> queryList(QueryMarketingMemberVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    MarketingMember findById(String id);

    /**
     * 创建
     * @param vo
     * @return
     */
    String create(CreateMarketingMemberVo vo);

    /**
     * 修改
     * @param vo
     */
    void update(UpdateMarketingMemberVo vo);

}

